package com.ls.controller;

import com.ls.service.GoodsService;

import java.util.Date;
import java.util.List;

/**
 * @author LQWQK
 * @version 1.0
 * @since 2022-07-01 18:57:27
 * 增 boolean            int
 * 删 boolean            int
 * 改 boolean            int
 * 查 List<Object>  List<Object>
 */
public class GoodsController {

    private GoodsService goodsService = new GoodsService();

    public void query(){
        System.out.println(new Date()+"控制层query方法执行!"+new Date());
        List<Object> select = goodsService.select();
        System.out.println(new Date() +"得到业务层的返回值, 响应给客户端了!");
        System.out.println("得到业务层的返回值, 响应给客户端了!"+ new Date());
    }
    public void add(){
        System.out.println("控制层add方法执行!");
    }
    public void update(){
        System.out.println("控制层update方法执行!");
    }
    public void delete(){
        System.out.println("控制层delete方法执行!");
    }
}
